<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2023/9/5
  Time: 16:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>User</title>
    <link rel="stylesheet" href="/css/user.css">
</head>
<body>
<div class="box1">
    <h1>用户中心</h1>
    <form>
        <input type="hidden" id="id" name="id" value="${user.id}">
        <table border="1" cellspacing="0">
            <tr>
                <td>用户名：</td>
                <td>${user.user_name}</td>
            </tr>
            <tr>
                <td>姓&emsp;名：</td>
                <td>${user.real_name}</td>
            </tr>
            <tr>
                <td>生&emsp;日：</td>
                <td><fmt:formatDate value='${user.birthday}' pattern='yyyy-MM-dd'/></td>
            </tr>
            <tr>
                <td>电&emsp;话：</td>
                <td>${user.phone}</td>
            </tr>
            <tr>
                <td>地&emsp;址：</td>
                <td>${user.address}</td>
            </tr>
        </table>
    </form>
    <a href="/toUpdateUser">
        <button>修改用户信息</button>
    </a>
    <br>
    <a href="/bookList">
        <button>返回</button>
    </a>
</div>
</body>
</html>
